package com.youmeek.ssm.module.area.mapper;

import com.youmeek.ssm.module.area.model.ChinaArea;
import org.apache.ibatis.annotations.MapKey;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

public interface ChinaAreaMapper {

    List<ChinaArea> selectAll();

    ChinaArea selectByPrimaryKey(Serializable id);

    @MapKey("areaCode")
    Map<Integer, ChinaArea> selectMapAll();

    ChinaArea selectByname(String name);

    ChinaArea selectShortName(String name);

    ChinaArea selectNameAndParentId(ChinaArea chinaArea);

    List<ChinaArea> selectFormName(String name);
}
